Skip to content

Add unit tests for core Python components - #178

Merged
pradeeban merged 5 commits into
ControlCore-Project:devfrom
Sahil-u07:add-unit-tests
Jan 28, 2026
Merged

Add unit tests for core Python components#178
pradeeban merged 5 commits into
ControlCore-Project:devfrom
Sahil-u07:add-unit-tests

Conversation

@Sahil-u07

Copy link
Copy Markdown
Contributor

Summary

This PR adds an initial unit test suite for core Python utilities in concore.py.
The goal is to establish a testing baseline so future changes can be made with more confidence and easier verification.

What’s included

  • Added a tests/ directory with a basic pytest setup
  • Added 10 unit tests covering:
    • safe_literal_eval() for file reading and parsing
    • tryparam() for parameter handling
    • ZeroMQ port class behavior
    • Default configuration values
    • Public API sanity checks
  • Added pytest.ini for consistent test configuration
  • Added requirements-dev.txt for development and testing dependencies
  • Updated .gitignore to exclude pytest cache and test artifacts

Testing

All tests pass locally when running pytest.

image

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants